package com.designpattern.builder;

/**
 * @author Liusr
 * @date 2023/3/29
 * @package com.designpattern.builder
 * @Description: 建造者模式客户端
 */
public class BuilderClient {
	public static void main(String[] args) {
		//链式调用
		Computer computer = new Computer.Builder("英特尔","三星")
				.setKeyboard("罗技")
				.setDisplay("三星24寸")
				.setUsbCount(2)
				.build();
	}
}
